package com.cats.template.sys.exception;


import com.cats.template.sys.enums.ResponseEnum;

/**
 * @author duxiaobo
 * @date 2021/9/84:55 下午
 */
public class SqlException extends CatException {
    public SqlException() {
        super(ResponseEnum.SQL_ERROR.getCode(), ResponseEnum.SQL_ERROR.getMsg());
    }

    public SqlException(String message) {
        super(message);
    }

    public SqlException(int code, String message) {
        super(ResponseEnum.SQL_ERROR.getCode(), message);
    }

    public SqlException(ResponseEnum responseEnum) {
        super(responseEnum.getCode(), responseEnum.getMsg());
    }
}
